package demo.propplaceholder;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * Created with IntelliJ IDEA.
 * User: neerajY
 * Date: 8/22/13
 * Time: 4:00 AM
 * To change this template use File | Settings | File Templates.
 */
public class App {

    public static void main(String args[]) {
        ApplicationContext context = new ClassPathXmlApplicationContext(
                "application-context.xml");

        ConsumeProperty consumeProperty = (ConsumeProperty) context.getBean("cosumerProperty");
        System.out.println("<< ** propKey = "+consumeProperty.getProperty() +" ** >>");

    }

}
